from selenium import webdriver
from time import sleep
from selenium.webdriver.common.action_chains import ActionChains

driver = webdriver.Chrome()
driver.maximize_window()
driver.get('https://www.bilibili.com')
game_center=driver.find_element_by_link_text("游戏中心")
ActionChains(driver).move_to_element(game_center).perform()
sleep(1)
driver.find_elements_by_tag_name('a')[4].click()
# 点击某个元素链接
sleep(5)
# 延迟5秒
#driver.quit()